<template>
  <div>
    <h2>我是子组件</h2>
    <h4>我现在有{{ value }}元</h4>

    <button @click="$emit('input', value + 1)">打工搬砖</button>
  </div>
</template>

<script>
export default {
  name: 'MySon',
  props: {
    value: Number,
  },
}
</script>

<style scoped></style>
